/**
 * @Author: 刘严泽
 * @Date: 2019/11/6
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 获取盘点清单列表
export const getCheckList = params => axios.get(`${SERVER.VEHICLE}/check/generateCheckBill/getCheckList`, { params });

// 盘点清单详情
export const getCheckDetailByBillNo = params => axios.get(`${SERVER.VEHICLE}/check/actualCheckMaintain/getCheckDetailByBillNo`, { params });

// 获取盘点底盘号
export const getVinInfoList = params => axios.get(`${SERVER.VEHICLE}/check/actualCheckMaintain/getVinInfoList`, { params });

// 保存盘点录入的信息
export const saveCheckEnterInfo = params => axios.post(`${SERVER.VEHICLE}/check/actualCheckMaintain/saveCheckEnterInfo`, params);

// 删除所选中的盘点单数据
export const delSelectedCheckDetail = params => axios.get(`${SERVER.VEHICLE}/check/actualCheckMaintain/delSelectedCheckDetail`, { params });

// 保存改变的数据
export const saveChangeDataList = params => axios.post(`${SERVER.VEHICLE}/check/actualCheckMaintain/saveChangeDataList`, params);

// 提交实盘按钮
export const submitCheck = params => axios.post(`${SERVER.VEHICLE}/check/actualCheckMaintain/submitCheck`, params);
